set (geometry_visualizer_SRCS      
     "generatepoints.cpp"
     "main.cpp"
     "testdrawer.cpp"
    )

set (geometry_visualizer_LIBS
     geometry)

find_package (Qt4 COMPONENTS QtOpenGL QtCore QtGui REQUIRED)
include (${QT_USE_FILE})
include_directories (${QT_INCLUDE_DIR})
set (geometry_visualizer_LIBS ${geometry_visualizer_LIBS} ${QT_LIBRARIES})

qt4_wrap_cpp(geometry_visualizer_MOC_SRCS
            testdrawer.h)
set (geometry_visualizer_SRCS ${geometry_visualizer_SRCS} ${geometry_visualizer_MOC_SRCS})

find_package (OpenGL REQUIRED)
include_directories (${OPENGL_INCLUDE_DIR})
set (geometry_visualizer_LIBS ${geometry_visualizer_LIBS} ${OPENGL_LIBRARIES})

add_executable (geometry_visualizer ${geometry_visualizer_SRCS})
target_link_libraries (geometry_visualizer ${geometry_visualizer_LIBS})
